import {request} from '@/utils/request'

// 树
export function menuTree(param) {
    return request({
        url: '/func/funcTree',
        method: 'post',
        data: param
    })
}

// 详情
export function menuDetail(param) {
    return request({
        url: '/func/detail',
        method: 'post',
        data: param
    })
}

// 保存
export function menuSave(param) {
    return request({
        url: '/func/save',
        method: 'post',
        data: param
    })
}

// 删除
export function menuDelete(param) {
    return request({
        url: '/func/delete',
        method: 'post',
        data: param
    })
}

// 批量新增
export function batchAdd(param) {
    return request({
        url: '/aut/batchAdd',
        method: 'post',
        data: param
    })
}

// 权限列表
export function autList(param) {
    return request({
        url: '/aut/list',
        method: 'post',
        data: param
    })
}

// 权限保存
export function autSave(param) {
    return request({
        url: '/aut/save',
        method: 'post',
        data: param
    })
}

// 权限删除
export function autDelete(param) {
    return request({
        url: '/aut/delete',
        method: 'post',
        data: param
    })
}

// 关联表单列表
export function queryList(param) {
    return request({
        url: '/repClass/query',
        method: 'post',
        data: param
    })
}

// 应用类型
export function funcAppList(param) {
    return request({
        url: '/funcApp/list',
        method: 'post',
        data: param
    })
}

// 应用类型保存
export function funcAppSave(param) {
    return request({
        url: '/funcApp/save',
        method: 'post',
        data: param
    })
}

// 应用类型删除
export function funcAppDelete(param) {
    return request({
        url: '/funcApp/delete',
        method: 'post',
        data: param
    })
}

// 数据字典
export function getAppType(param) {
    return request({
        url: '/dict/selectByName',
        method: 'get',
        params: param
    })
}

// 上移
export function funcUp(param) {
    return request({
        url: '/func/up',
        method: 'post',
        data: param
    })
}

// 下移
export function funcDown(param) {
    return request({
        url: '/func/down',
        method: 'post',
        data: param
    })
}
